<!DOCTYPE html>
<html>
<head>
  <title>Hello WebSocket</title>
  <meta charset="UTF-8">
  <link href="css/index.css" rel="stylesheet">
  <!-- 引入样式 -->
  <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
  <script src="/app.js"></script>

</head>
<body>
<div id="app">
  <template>
    <div style="min-width: 1750px">
      <el-row style="display: flex;justify-content: left;">
        <el-col :span="2">
          <div class="block">
            <el-input v-model="indexPage.search.下辖ID" placeholder="请输入下辖ID"></el-input>
          </div>
        </el-col>
        <el-col :span="2">
          <div class="block">
            <el-input v-model="indexPage.search.下辖ID归属人" placeholder="请输入下辖ID归属人"></el-input>
          </div>
        </el-col>
        <el-col :span="2">
          <div class="block">
            <el-input v-model="indexPage.search.所属事业部" placeholder="请输入所属事业部"></el-input>
          </div>
        </el-col>
        <el-col :span="3">
          <div class="block">
            <el-date-picker v-model="indexPage.search.开始时间" type="indexPage.search."
                            value-format="yyyy-MM-dd HH:mm:ss"
                            placeholder="选择开始时间"></el-date-picker>
          </div>
        </el-col>
        <el-col :span="3">
          <div class="block">
            <el-date-picker v-model="indexPage.search.结束时间" type="datetime"
                            value-format="yyyy-MM-dd HH:mm:ss"
                            placeholder="选择结束时间"></el-date-picker>
          </div>
        </el-col>
        <el-col :span="6">
          <div class="block">
            <el-button type="primary" icon="el-icon-search" @click="searchBtn">搜索</el-button>
            <!-- <el-button type="primary" @click="exportsExcel">导出</el-button>-->
            <el-button type="primary" @click="parseAlotOfFileBtn">嗯,文件很多,那就解析一下</el-button>
            <el-button type="primary" @click="parseAlotOfFileBtnSecond">第二次解析</el-button>

          </div>
        </el-col>
      </el-row>
    </div>
    <!--弹窗-->

    <!-- &lt;!&ndash;商品导入&ndash;&gt;
     <div>
       <el-dialog :visible.sync="productImportedDialog" title="导入Excel">
         <el-row style="margin-top: -40px">
           <hr>
         </el-row>
         <el-row >
           <el-upload
                   :beforeUpload="productBeforeUpload"
                   :http-request="productImported"
                   accept=".xlsx,.xls"
                   action=""
                   class="upload-demo"
                   drag
                   :file-list="fileList"
                   multiple>
             <i class="el-icon-upload"></i>
             <div class="el-upload__text">将文件拖到此处，或<em>点击上传</em><br>支持.xlsx/.xls, <5M</div>
             <div class="el-upload__tip" slot="tip" style="margin-left: 15%">第一次使用?请先<a
                     href="https://fileyx.hoshiibuy.com/file/b3ad2391-7754-4dbb-95b9-d2b6401d9dde.xls"
                     style="color:blue;">下载模板</a>
             </div>
           </el-upload>
         </el-row>
         <el-row>
           <el-button type="info" @click="productImportedDialog =false" round>取消</el-button>
           <el-button type="primary" @click="confirm" round>确定</el-button>
         </el-row>
       </el-dialog>
     </div>-->

  </template>

  <template>
    <el-table :data="indexPage.tableData" border v-loading="indexPage.loadingFlag"
              style="width: 100%;margin-top: 5px">
      <el-table-column prop="下辖ID" label="下辖ID" width="90"/>
      <el-table-column prop="下辖ID归属人" label="下辖ID归属人" width="180"/>
      <el-table-column prop="公司名称" label="公司名称" width="150"/>
      <el-table-column prop="所属事业部" label="所属事业部" width="180"/>
      <el-table-column prop="企业法人" label="企业法人" width="180"/>
      <el-table-column prop="电话" label="电话" width="180"/>
      <el-table-column prop="指定收款ID" label="指定收款ID" width="180"/>
      <el-table-column prop="对公账户" label="对公账户" width="180"/>
      <el-table-column prop="邮箱" label="邮箱" width="180"/>
      <el-table-column prop="提交时间" label="提交时间" width="180"/>
      <el-table-column prop="batchNumber" label="batchNumber" width="180"/>
      <el-table-column prop="version" label="版本号" width="180"/>
      <el-table-column prop="createTime" label="创建时间" width="180"/>
      <el-table-column prop="updateTime" label="更新时间" width="180"/>
      <el-table-column prop="fileName" label="文件名称" width="180"/>
    </el-table>
    <el-pagination @size-change="handleSizeChange" @current-change="pageChange"
                   :current-page="indexPage.search.page" :page-sizes="[50,100, 200, 300, 400]"
                   :page-size="indexPage.search.limit"
                   layout="total, sizes, prev, pager, next, jumper" :total="indexPage.total">
    </el-pagination>
  </template>


</div>
</body>
<!-- import Vue before Element -->
<script src="https://cdn.jsdelivr.net/npm/vue"></script>
<!-- 引入组件库 -->
<script src="https://unpkg.com/element-ui/lib/index.js"></script>
<link href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css"
      rel="stylesheet">
<!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
<script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
<script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<script src="/js/index.js"></script>
</html>